extends ../../layout
block content
    .container
        .row
            .col-md-5.col-md-offset-3
                h1 编辑客户端 #{client.name}
                .panel.panel-default
                    .panel-body
                        form(action="/oauth/client/"+client.id, method="POST")

                            .form-group
                                label app name
                                input.form-control(type="text", name="name", value=client.name)
                            .form-group
                                label app direct
                                input.form-control(type="text", name="redirect_uri", value=client.redirect_uri)
                                span 
                                    small 调转地址 http:// 或 https:// 开头
                            .form-group
                                label client_id
                                input.form-control(type="text", name="id", value=client.id disabled)
                                span 
                                    small 不可修改
                            .form-group
                                label client_secret
                                input.form-control(type="text", name="secret", value=client.secret disabled)
                                span 
                                    small 不可修改
                            .form-group
                                button.btn.btn-primary(type="submit") 修改